package com.mobilezu.mobile.pushserver.service;

import com.mobilezu.mobile.pushserver.xmpp.XmppServer;


public class ServiceManager {

	public static String PUSH_USER_SERVICE = "pushUserService";
	public static String PUSH_DATA_SERVICE = "pushDataService";

	/**
	 * ���name���service����
	 * 
	 * @param name
	 *            the service bean name
	 * @return
	 */
	public static Object getService(String name) {
		return XmppServer.getInstance().getBean(name);
	}

	/**
	 * ����û�service.
	 * 
	 * @return the user service
	 */
	public static PushUserService getPushUserService() {
		return (PushUserService) XmppServer.getInstance().getBean(
				PUSH_USER_SERVICE);
	}

	/**
	 * ����û���Ϣservice.
	 * 
	 * @return the pushData service
	 */
	public static PushDataService getPushDataService() {
		return (PushDataService) XmppServer.getInstance().getBean(
				PUSH_DATA_SERVICE);
	}

}
